package com.ruoyi.lease.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预约管理对象 tb_appointment
 *
 * @author ruoyi
 * @date 2024-10-15
 */
public class TbAppointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约id */
    private Long appointmentId;

    /** 租客id */
    @Excel(name = "租客id")
    private Long tenantId;

    /** 房屋id */
    @Excel(name = "房屋id")
    private Long houseId;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmentTime;

    /** 预约状态 */
    @Excel(name = "预约状态", readConverterExp = "0=待确认,1=已确认,2=已取消")
    private Integer appointmentStatus;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 租客名称 */
    @Excel(name = "租客名称")
    private String tenantName;

    /** 公寓名称 */
    @Excel(name = "公寓名称")
    private String apartmentName;

    /** 门牌号 */
    @Excel(name = "门牌号")
    private String doorplate;

    public void setAppointmentId(Long appointmentId)
    {
        this.appointmentId = appointmentId;
    }

    public Long getAppointmentId()
    {
        return appointmentId;
    }
    public void setTenantId(Long tenantId)
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId()
    {
        return tenantId;
    }
    public void setHouseId(Long houseId)
    {
        this.houseId = houseId;
    }

    public Long getHouseId()
    {
        return houseId;
    }
    public void setAppointmentTime(Date appointmentTime)
    {
        this.appointmentTime = appointmentTime;
    }

    public Date getAppointmentTime()
    {
        return appointmentTime;
    }
    public void setAppointmentStatus(Integer appointmentStatus)
    {
        this.appointmentStatus = appointmentStatus;
    }

    public Integer getAppointmentStatus()
    {
        return appointmentStatus;
    }
    public void setNotes(String notes)
    {
        this.notes = notes;
    }

    public String getNotes()
    {
        return notes;
    }

    public String getTenantName()
    {
        return tenantName;
    }

    public void setTenantName(String tenantName)
    {
        this.tenantName = tenantName;
    }

    public String getApartmentName()
    {
        return apartmentName;
    }

    public void setApartmentName(String apartmentName)
    {
        this.apartmentName = apartmentName;
    }

    public String getDoorplate()
    {
        return doorplate;
    }

    public void setDoorplate(String doorplate)
    {
        this.doorplate = doorplate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("appointmentId", getAppointmentId())
                .append("tenantId", getTenantId())
                .append("houseId", getHouseId())
                .append("appointmentTime", getAppointmentTime())
                .append("appointmentStatus", getAppointmentStatus())
                .append("notes", getNotes())
                .append("tenantName", getTenantName())
                .append("apartmentName", getApartmentName())
                .append("doorplate", getDoorplate())
                .toString();
    }
}
